import cPickle

t=open("tmp").readlines()
t=[v.strip("\n") for v in t]
d=cPickle.load(open("clus_no.db"))
for k in t:
	no=int(k.split(",")[0])
	for tk in d:
		if d[tk]==no:
			print tk,k
			break
